package com.hibay.goldking.base

import android.app.Application
import com.blankj.utilcode.util.ProcessUtils.isMainProcess
import com.hibay.goldking.common.ActivityHelper
import com.hibay.goldking.common.loadmore.LoadMoreHelper

/**
 *
 *
 * @author chenchao
 * @date 3/1/21 11:23
 */
class App : Application() {

    companion object {
        lateinit var instance: App
    }

    override fun onCreate() {
        super.onCreate()
        instance = this
        // 主进程初始化
        if (isMainProcess()) {
            init()
        }
    }

    private fun init() {
        LoadMoreHelper.init()
        ActivityHelper.init(this)
    }

}